<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompanyReport.aspx.cs" Inherits="CompanyReport"
    MasterPageFile="~/Default.master" EnableViewState="false" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.XtraCharts.v9.2.Web, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.XtraCharts.Web" TagPrefix="dxchartsui" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2.Export, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<asp:Content ContentPlaceHolderID="head" ID="hd" runat="server" EnableViewState="false">

    <script src="CompanyReport.js" type="text/javascript"></script>

    

    <script src="js/FileUpload.js" type="text/javascript"></script>

    <script src="js/LOV.js" type="text/javascript"></script>

    <script src="js/Datetimepicker.js" type="text/javascript"></script>
    <script src="js/DateFormat.js" type="text/javascript"></script>

    <link href="CompanyReport.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ContentPlaceHolderID="leftMenu" ID="leftnav" runat="server" EnableViewState="false">
    <% Response.Write(GenerateSideMenu(String.Empty, m_iCompanyId.ToString())); %>
</asp:Content>
<asp:Content ContentPlaceHolderID="content" ID="ctnCompanyReport" runat="server"
    EnableViewState="false">
    <input type="hidden" id="hidContactId" value="" />
    <input type="hidden" id="hidCompanyId" value="<% Response.Write(m_iCompanyId.ToString()); %>" />
    <div id="pnlCompanyTitle" runat="server">
    </div>
    <fieldset class="m_fs_border" id="fs_Panel">
        <legend><a class="lnk" href="javascript:toggle('Panel');"><% Response.Write(CompanyReportManager.GetReportName(m_iReportId)); %></a> </legend>
        <dl class="m_fs">
            <div id="div_Panel">
            <% Response.Write(CompanyReportManager.GeneratePanel_NetworkJasa());
               Response.Write(CompanyReportManager.GenerateSeriesFilter(m_iReportId, m_iCompanyId, m_dtmStart, m_dtmEnd)); %>
            </div>
        </dl>
    </fieldset>
    <fieldset class="m_fs_border" id="fs_Chart">
        <legend><a class="lnk" href="javascript:toggle('Chart');">Chart View</a> </legend>
        <dl class="m_fs">
            <div id="div_Chart">
                <dxchartsui:WebChartControl ID="chrMain" runat="server" Height="400px" Width="540px"
                    DiagramTypeName="XYDiagram" ClientInstanceName="chrMain_c" OnCustomCallback="chrMain_CustomCallback">
                    <FillStyle FillOptionsTypeName="SolidFillOptions">
                        <Options HiddenSerializableString="to be serialized" />
                    </FillStyle>
                    <BorderOptions Visible="False" />
                    <Diagram>
                        <axisx>
                            <Range SideMarginsEnabled="True"></Range>
                        </axisx>
                        <axisy title-text="(dalam satuan apa)" title-visible="True" gridspacingauto="True"
                            interlaced="True">
                            <Range SideMarginsEnabled="True"></Range>
                        </axisy>
                    </Diagram>
                    <SeriesTemplate LabelTypeName="SideBySideBarSeriesLabel" PointOptionsTypeName="PointOptions"
                        SeriesViewTypeName="SideBySideBarSeriesView">
                        <PointOptions HiddenSerializableString="to be serialized">
                        </PointOptions>
                        <Label HiddenSerializableString="to be serialized">
                            <FillStyle FillOptionsTypeName="SolidFillOptions">
                                <Options HiddenSerializableString="to be serialized" />
                            </FillStyle>
                        </Label>
                        <View HiddenSerializableString="to be serialized">
                        </View>
                        <LegendPointOptions HiddenSerializableString="to be serialized">
                        </LegendPointOptions>
                    </SeriesTemplate>
                </dxchartsui:WebChartControl>
            </div>
        </dl>
    </fieldset>
    <fieldset class="m_fs_border" id="fs_Grid">
        <legend><a class="lnk" href="javascript:toggle('Grid');">Tabular View</a> </legend>
        <dl class="m_fs">
            <div id="div_Grid">
                <dxwgv:ASPxGridView ID="dgMain" ClientInstanceName="dgMain_c" runat="server" AutoGenerateColumns="true"
                    Width="540px" OnCustomCallback="dgMain_CustomCallback">
                    <Settings ShowFilterRow="true" ShowFilterRowMenu="true" />
                    <SettingsPager PageSize="10">
                    </SettingsPager>
                    <SettingsBehavior AllowSort="true" />
                    <Styles Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true"
                        Cell-Font-Size="Smaller" Header-Wrap="true" Header-Font-Size="Smaller" Header-Font-Bold="true">
                        <Header Wrap="True" Font-Size="Smaller" Font-Bold="True">
                        </Header>
                        <AlternatingRow Enabled="True">
                        </AlternatingRow>
                        <Cell Wrap="True" Font-Size="Smaller">
                        </Cell>
                    </Styles>
                    <SettingsPager PageSize="10">
                    </SettingsPager>
                </dxwgv:ASPxGridView>
                <dxwgv:ASPxGridViewExporter ID="dgExporter" GridViewID="dgMain" runat="server">
                </dxwgv:ASPxGridViewExporter>
                <dxe:ASPxButton ID="btnExport" runat="server" Text="Save To XLS" UseSubmitBehavior="false"
                    OnClick="btnExport_Click" ClientInstanceName="btnExport_c" Image-Url="images/excel.png" 
                    Width="120px" Height="20px" HorizontalAlign="Left">
                </dxe:ASPxButton>
            </div>
        </dl>
    </fieldset>
</asp:Content>
